FROM debian:stable-slim

COPY bin /app
COPY configs /data/conf

ENV APP_NAME=server
RUN chmod +x /app/server

WORKDIR /app

EXPOSE 8000
EXPOSE 9000
VOLUME /data/conf

CMD ["/app/server", "-conf", "/data/conf/config.yaml"]
